package CreationalPatterns.AbstractFactory;

public class ColorFactory extends AbstractFactory {

  @Override
  public Shape getShape(String shapeType) {

    return null;
  }

  @Override
  public Color getColor(String colorType) {
    if (colorType == null){
      return null;
    }
    if (colorType.equalsIgnoreCase("red")){
      return new Red();
    }
    if (colorType.equalsIgnoreCase("blue")){
      return new Blue();
    }
    return null;
  }
}
